﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Demo01
{
    class User:Person
    {
        public User()
        {

        }
        
        public User(string name) : base(name)
        {

        }

        public override string Action()
        {
            while (true)
            {
                Console.WriteLine("请出拳：1.剪刀 2.石头 3.布（输入相应数字）");
                string chioce = Console.ReadLine();
                switch (chioce)
                {
                    case "1":
                        return "剪刀";
                    case "2":
                        return "石头";
                    case "3":
                        return "布";
                    default:
                        Console.WriteLine("输入错误，请重新输入！");
                        continue;
                }
            }
        }
    }
}
